<?php
include "conexion.php";
session_start();
include("class_sesion.php");
$sesion= new Sesion();
$CadenaPermisos = $sesion->iniciar();
include ("class_menu.php") ;
$menu= new menu();

require("header.php");


?>
<br>
<div class="container">
    <center>
    <div id="menu" class="well">
    
	<p align="center"><h2 id="titulo1">Sistema de Gestión Empaque S.A</h2></p>
	
        <div class="navbar">
            <div class="navbar-inner">
              <div class="container">
                <div class="nav-collapse">
                  <ul class="nav">
                    <?php
			$var = $menu->menu_ppal($CadenaPermisos);
		    ?>
                  </ul>
                  <ul class="nav pull-right">
                    <li class="divider-vertical"></li>
                    <li class="dropdown">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><strong><?php echo $_SESSION['Nombre']; ?></strong><b class="caret"></b></a>
                      <ul class="dropdown-menu">
                        <li><a href="index.php">Cerrar sesi&oacute;n</a></li>
                      </ul>
                    </li>
                  </ul>
                </div><!-- /.nav-collapse -->
              </div>
            </div><!-- /navbar-inner -->
          </div>
	
	    <?php echo $var ;?>
		<p align="center" style="margin-top: 100px;"><img src="logo.png" width="300" height="300" /></p>
		
	    
    </div>
    </center>
    

</div>

<?php

require("footer.php");

?>

<script language=JavaScript>
<!--

function inhabilitar(){
    alert ("Esta función esta inhabilitada.\n\nPerdonen las molestias.")
    return false
}

document.oncontextmenu=inhabilitar

// -->
</script> 